Optimal. Leaf size=41 \[ -\frac{i \sqrt{a+i a \tan (e+f x)}}{f \sqrt{c-i c \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0942072, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.057, Rules used = {3523, 37} \[ -\frac{i \sqrt{a+i a \tan (e+f x)}}{f \sqrt{c-i c \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3523
Rule 37
Rubi steps
\begin{align*} \int \frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{c-i c \tan (e+f x)}} \, dx &=\frac{(a c) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+i a x} (c-i c x)^{3/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{i \sqrt{a+i a \tan (e+f x)}}{f \sqrt{c-i c \tan (e+f x)}}\\ \end{align*}
Mathematica [A] time = 1.17752, size = 64, normalized size = 1.56 \[ \frac{\cos (e+f x) \sqrt{a+i a \tan (e+f x)} \sqrt{c-i c \tan (e+f x)} (\sin (e+f x)-i \cos (e+f x))}{c f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.081, size = 63, normalized size = 1.5 \begin{align*}{\frac{-i \left ( -1+i\tan \left ( fx+e \right ) \right ) }{cf \left ( \tan \left ( fx+e \right ) +i \right ) ^{2}}\sqrt{a \left ( 1+i\tan \left ( fx+e \right ) \right ) }\sqrt{-c \left ( -1+i\tan \left ( fx+e \right ) \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.73991, size = 34, normalized size = 0.83 \begin{align*} \frac{\sqrt{a}{\left (-i \, \cos \left (f x + e\right ) + \sin \left (f x + e\right )\right )}}{\sqrt{c} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.39113, size = 162, normalized size = 3.95 \begin{align*} \frac{\sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}{\left (-i \, e^{\left (2 i \, f x + 2 i \, e\right )} - i\right )} e^{\left (i \, f x + i \, e\right )}}{c f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \left (i \tan{\left (e + f x \right )} + 1\right )}}{\sqrt{- c \left (i \tan{\left (e + f x \right )} - 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{i \, a \tan \left (f x + e\right ) + a}}{\sqrt{-i \, c \tan \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]